import requests, traceback
from http.server import BaseHTTPRequestHandler
url = "https://gitee.com/cat_planet/cat_planet/comment_list"
class handler(BaseHTTPRequestHandler):
	def do_GET(self):
		self.send_response(200)
		self.send_header('Content-type','text/plain')
		self.end_headers()
		JSONPData = "var JSONP_data = " + requests.get(url).content.decode() + ';'
		self.wfile.write(JSONPData.encode())
		return
